<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // let end = +prompt('请输入循环次数')
        // let i = 1
        // while (i <= 5) {
        //     document.write(`我要循环${end}次<br>`)
        //     i++
        // }
        let i = 1
        while (i <= 100) {
            document.write(`第${i}个数为${i}<br>`)
            i++
        }
    </script>
</body>

</html>